package cn.com.yiqi.wsc.dao.subject;

import cn.com.artemis.framework.base.commons.persistence.CrudDao;
import cn.com.yiqi.wsc.entity.subject.SubjectItem;
import cn.com.yiqi.wsc.entity.subject.SubjectItemDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 何刚
 * @ClassName: ${class}
 * @Description: TODO
 * @date 2017/3/13
 */
public interface SubjectItemDao extends CrudDao<SubjectItem> {

    /**
     * 批量插入
     *
     * @param subjectItems
     * @return
     */
    Integer batchInsert(@Param("subjectItems") List<SubjectItemDTO> subjectItems);

    /**
     * 根据ItemId删除
     *
     * @param subjectId
     * @return
     */
    Integer deleteBySubjectId(@Param("subjectId") Integer subjectId);
}
